﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Activities;

namespace Umbrella.Whs.Service.Activities
{
    public sealed class HideWhsNotification : SafeCodeActivity
    {
        [RequiredArgument]
        public InArgument<string> NotificationId { get; set; }

        // If your activity returns a value, derive from CodeActivity<TResult>
        // and return the value from the Execute method.
        protected override void ExecuteSafe(CodeActivityContext context)
        {
            var id = context.GetValue(this.NotificationId);

            var not = new WhsNotification(id);

            not.HideNotification();
        }
    }
}
